<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Pet_insert.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" href="css/style.css" type="text/css"></link>
  </head>
  
  <body>
    <center>
			<div id="top">
				<%@ include file="Admin_top.jsp"%>
			</div>
			<div id="center">
				<div id="centerleft">
					<img src="image/1-home_07.gif" border="0" />
					<div id="menulist">
						<!--功能菜单开始-->
						<%@ include file="Pet_left.jsp"%>
						<!--功能菜单结束-->
					</div>
					<img src="image/1-home_02.gif" border="0" id="i2" />
				</div>
				<div id="centerright">
					<div id="guide">
						您现在所在的位置：宠物在线系统>>管理端系统>>宠物管理>>增加宠物
					</div>
					<div id="main">
						<!--功能开始-->
						<s:form action="InsertPet" method="post" enctype="multipart/form-data">
						
							<table>
								<caption>
									添加宠物信息列表
								</caption>
								<tr>
									<td>
										宠物名称:
									</td>
									<td>
										<s:textfield name="pet.pet_Name"></s:textfield>
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>pet.pet_Name</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										宠物年龄:
									</td>
									<td>
										<s:textfield name="pet.pet_Age" size="1"/>
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>pet.pet_Age</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								
								<tr>
									<td>
										宠物性别:
									</td>
									<td>
										<s:radio list="{'公','母','未知'}" name="pet.pet_Sex" value="'公'"></s:radio>
									</td>
								</tr>
								<tr>
									<td>
										宠物产地:
									</td>
									<td>
										<s:textfield name="pet.pet_Produce_place" />
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>pet.pet_Produce_place</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										宠物爱好:
									</td>
									<td>
										<s:textfield name="pet.pet_Hobby"></s:textfield>
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>pet.pet_Hobby</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										宠物价格:
									</td>
									<td>
										<s:textfield name="pet.pet_Price"></s:textfield>
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>pet.pet_Price</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										宠物照片:
									</td>
									<td>
										<s:file name="Pet_Photo"></s:file>
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>Pet_Photo</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										宠物介绍:
									</td>
									<td>
										<s:textarea name="pet.pet_Comment"  cols="30" rows="8"/>
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>pet.pet_Comment</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										<input type="submit" value="提交" />
									</td>
									<td>
										<input type="reset" value="重置" />
									</td>
								</tr>
							</table>
						</s:form>
						<div align="center"></div>
					</div>
				</div>
				<div style="clear: both"></div>
			</div>
		</center>
		</body>
</html>
